ComponentOne Basic Library for UWP
C1TreeView Structure
UWP Edition Basic Library > TreeView for UWP > C1TreeView Structure

The C1TreeView class is a StackPanel with two elements:

You can add images to a node by grabbing its first child (the header), casting that to a StackPanel, and inserting an image element at whatever position you prefer. For example:

Visual Basic
Copy Code
Dim nodeHeader As StackPanel = TryCast(TreeNode.Children(0), StackPanel)
nodeHeader.Children.Insert(0, myImage)

 

C#
Copy Code
StackPanel nodeHeader = TreeNode.Children[0] as StackPanel;
nodeHeader.Children.Insert(0, myImage);
See Also